<template>
    <ElConfigProvider :locale="locale">
        <RouterView />
    </ElConfigProvider>
</template>

<script setup lang="ts">
import { i18n, initLocaleSetting } from '@/i18n';
import { computed } from 'vue';

// 本地化词条
const locale = computed(() => {
    return i18n.global.getLocaleMessage(i18n.global.locale.value).element;
});
initLocaleSetting();
</script>

<style></style>
